using System;
using System.Collections.Generic;
using PhillyCodeCamp.DTO;
using PhillyCodeCamp.Services;

namespace PhillyCodeCampSpecs.Helpers
{
    public class StubTaxService : ITaxService
    {
        private bool _taxWasComputed;

        public IList<ILookupDTO> GetListOfStates()
        {
            var states = new List<ILookupDTO>
                             {
                                 new LookupDTO("1", "state 1"),
                                 new LookupDTO("2", "state 2"),
                                 new LookupDTO("3", "state 3")
                             };
            return states;
        }

        public decimal ComputeTax(TaxDataDTO taxDataDTO)
        {
            _taxWasComputed = true;
            return 0;
        }

        public bool TaxWasComputed
        {
            get { return _taxWasComputed; }
        }
    }
}